import request from '@/utils/request'

export function getInfo(token) {
  return request({
    url: '/admin/system/authority/detail',
    method: 'get'
    // params: { token }
  })
}

export function roleBindMenu(data) {
  return request({
    url: '/admin/system/authority/roleBindMenu',
    method: 'post',
    data: data
  })
}
export function roleBindPermission(data) {
  return request({
    url: '/admin/system/authority/roleBindPermission',
    method: 'post',
    data: data
  })
}

export function getRoutes(token) {
  return request({
    url: '/admin/system/authority/routes',
    method: 'get'
    // params: { token }
  })
}
